public class Test4 {
    public static void main(String[] args) {
        int [][]array = new int[2][];
        array[0] = new int [3];
        array[1] = new int [5];
        for (int[] ints : array) {
            for (int anInt : ints) {
                System.out.print(anInt+" ");
            }
            System.out.println();
        }
    }
}
